<?php
require_once(dirname(__FILE__).'/log/Log.php');

class Logger{
  private static $_logger = null;
  
  public static function instance($type,$_logfile,$tag,$_logconf,$_loglevel)
  {
    if(!is_a(self::$_logger, 'Log'))      
      self::$_logger = Log::singleton('file', $_logfile, $tag, $_logconf, $_loglevel);
    return self::$_logger;
  }
  
  public function emerg($message)
  {
    self::$_logger->emerg($message);
  }

  public function alert($message)
  {
    self::$_logger->alert($message);
  }

  public function crit($message)
  {
    self::$_logger->crit($message);
  }

  public function err($message)
  {
    self::$_logger->err($message);
  }

  public function warning($message)
  {
    self::$_logger->warning($message);
  }

  public function notice($message)
  {
    self::$_logger->notice($message);
  }

  public function info($message)
  {
    self::$_logger->info($message);
  }

  public function debug($message)
  {
    self::$_logger->debug($message);
  }
}

?>